* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
}

#container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#header {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

#header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

#header p {
    font-size: 1.2em;
    opacity: 0.9;
}

#file-upload-section {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

#file-input {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-right: 15px;
}

.upload-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#file-name {
    color: white;
    font-size: 14px;
}

#canvas-container {
    flex: 1;
    position: relative;
    background: #000;
    margin: 0 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#three-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

#info {
    text-align: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #header h1 {
        font-size: 2em;
    }
    
    #header p {
        font-size: 1em;
    }
    
    #canvas-container {
        margin: 0 10px;
        height: 50vh;
    }
    
    .control-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #header {
        padding: 15px;
    }
    
    #header h1 {
        font-size: 1.5em;
    }
    
    #canvas-container {
        margin: 0;
        border-radius: 0;
    }
}
